home *** CD-ROM | disk | FTP | other *** search
/ Flashy TrueType Fonts / Flashy TrueType Fonts.iso / secrtary / install.dat < prev    next >
Text File  |  1996-06-09  |  10KB  |  256 lines

  1. /*
  2.  * INSTALL.DAT
  3.  * Project: PC Secretary
  4.  * Version: 1.01
  5.  */
  6.  
  7. @DefineProject
  8.     @Name = "PC Secretary"
  9.     @Version = "1.01"
  10.     
  11.     @Subdir = "\\PCSEC"
  12.     @OutDrive = Z
  13. @EndProject
  14.  
  15. @DefineVars
  16.     @Qstring @PkgType   = "BOX"
  17.     @Integer @Blue       = @RGB(0,0,255)             //DEFINE COLOR BLUE
  18.     @Integer @Black      = @RGB(0,0,0)               //DEFINE COLOR BLACK
  19.     
  20. @EndVars
  21.  
  22.  
  23. @BackgroundMode(3,@Blue,@Black)
  24. @Display
  25.     @Cls
  26.  
  27.     Congratulations on your purchase of @Name!
  28.     
  29.     This program will now install @Name 
  30.     to your hard disk drive and verify the integrity
  31.     of the CD-ROM disk. You may press the [Esc] key
  32.     at any time to abort the installation.
  33.  
  34.  
  35.     @Pause
  36. @EndDisplay
  37. @PkgType = @GetINI("COSMI CDSETUP", "PkgMethod")
  38. @GetOutDrive
  39.     @Cls
  40.     Select the HARD disk drive on which you wish to install your
  41.     new copy of @Name.
  42.     ie. "Drive C:"
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.     @Suppress(0, 1)
  50.     Use the [CURSOR] to highlight a drive letter. Press [ENTER]
  51.     to select that drive.
  52. @EndOutDrive
  53.  
  54. @GetSubdir
  55.     @Cls
  56.     INSTALL is now suggesting a name for a program destination subdirectory 
  57.     to which files will be copied. Press [ENTER] to use @OutDrive:@SubDir,
  58.     or type "\" and a "path", where "path" is the subdirectory you want INSTALL
  59.     to use.
  60.  
  61.     
  62.  
  63. @Prompt = "Which subdirectory ([Enter] = @Subdir) ?"
  64. @EndSubdir
  65.  
  66. @DefineVars
  67.     @Qstring @Item1 = "@OutDrive:\\@Subdir\\pcsect.exe, @Name,
  68.                @OutDrive:\\@Subdir\\pcsect.exe"
  69.     @Qstring @Item2 = "@OutDrive:\\@Subdir\\pcsect.hlp, @Name Help,
  70.                @OutDrive:\\@Subdir\\pcsect.hlp"
  71.     @Qstring @Item3 = "@OutDrive:\\@Subdir\\pcseman.wri, @Name Manual,
  72.                @OutDrive:\\@Subdir\\pcseman.wri"
  73.     @Qstring @Item4 = "@OutDrive:\\@Subdir\\spacegrd.wri, Space Guard Manual,
  74.                @OutDrive:\\@Subdir\\spacegrd.wri"
  75.     @Qstring @Item5 = "@OutDrive:\\@Subdir\\spacegrd.exe, Space Guard,
  76.                @OutDrive:\\@Subdir\\spacegrd.exe"
  77.     @Qstring @Item6 = "@OutDrive:\\@Subdir\\spacegrd.hlp, Space Guard Help,
  78.                @OutDrive:\\@Subdir\\spacegrd.hlp"
  79. @EndVars
  80.  
  81. @DefineDisk
  82.     @Label = "PCSEC  Disk #1"
  83.     @BeginLib 773.001
  84.         @F MSAJT200.EXE @S 515569 @O MSAJT200.EXE
  85.         @F PCSECT.EXE @S 534135 @O PCSECT.EXE
  86.         @F README.TXT @S 964 @O README.TXT
  87.         @F PCSECT.HLP @S 200185 @O PCSECT.HLP
  88.         @F INSTALL.LOG @S 248 @O INSTALL.LOG
  89.         @F CALLADDR.DLL @S 1280 @O CALLADDR.DLL
  90.         @F COMMDLG.DLL @S 89248 @O COMMDLG.DLL
  91.         @F CTL3DV2.DLL @S 25808 @O CTL3DV2.DLL
  92.         @F DDEML.DLL @S 39424 @O DDEML.DLL
  93.         @F MSAES110.DLL @S 33280 @O MSAES110.DLL
  94.         @F MSAFINX.DLL @S 31744 @O MSAFINX.DLL
  95.         @F MSAJT112.DLL @S 17440 @O MSAJT112.DLL
  96.         @F PORIENT.DLL @S 10384 @O PORIENT.DLL
  97.         @F VBDB300.DLL @S 95200 @O VBDB300.DLL
  98.         @F VBRUN300.DLL @S 398416 @O VBRUN300.DLL
  99.         @F VER.DLL @S 9696 @O VER.DLL
  100.         @F CMDIALOG.VBX @S 18688 @O CMDIALOG.VBX
  101.         @F MSGHOOK.VBX @S 7648 @O @WindowsDrive:\\@WindowsDir\\SYSTEM\\MSGHOOK.VBX
  102.         @F TOOLBUTN.VBX @S 43008 @O @WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTN.VBX
  103.         @F TOOLBUTT.VBX @S 12720 @O @WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTT.VBX
  104.      @EndLib
  105.     // copy dlls to the system dir only if dated later than current dlls
  106.  
  107. @If( @FileDate("@OutDrive:\\@Subdir\\CALLADDR.DLL")
  108.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\CALLADDR.DLL") )
  109.        //COMMDLG.DLL is used extensively by windows - copYing this could cause probs if already in use
  110.   @Copy("@OutDrive:\\@Subdir\\CALLADDR.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\CALLADDR.DLL")
  111. @EndIf
  112.  
  113. @If( @FileDate("@OutDrive:\\@Subdir\\COMMDLG.DLL")
  114.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL") )
  115.        //COMMDLG.DLL is used extensively by windows - copying this could cause probs if already in use
  116.   @Copy("@OutDrive:\\@Subdir\\COMMDLG.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL")
  117. @EndIf
  118.  
  119. @If( @FileDate("@OutDrive:\\@Subdir\\CTL3DV2.DLL")
  120.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\CTL3DV2.DLL") )
  121.      //CTL3DV2.DLL is used extensively by windows - copying this could cause probs if already in use
  122.       @Copy("@OutDrive:\\@Subdir\\CTL3DV2.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\CTL3DV2.DLL")
  123. @EndIf
  124.  
  125. @If( @FileDate("@OutDrive:\\@Subdir\\DDEML.DLL")
  126.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\DDEML.DLL") )
  127.    //DDEML.DLL is used extensively by windows - copying this could cause probs if already in use
  128.   @Copy("@OutDrive:\\@Subdir\\DDEML.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\DDEML.DLL")
  129. @EndIf
  130.  
  131. @If( @FileDate("@OutDrive:\\@Subdir\\MSAES110.DLL")
  132.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAES110.DLL") )
  133.    //MSAES110.DLL is used extensively by windows - copying this could cause probs if already in use
  134.   @Copy("@OutDrive:\\@Subdir\\MSAES110.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAES110.DLL")
  135. @EndIf
  136.  
  137. @If( @FileDate("@OutDrive:\\@Subdir\\MSAFINX.DLL")
  138.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAFINX.DLL") )
  139.      //MSAFINX.DLL is used extensively by windows - copying this could cause probs if already in use
  140.    @Copy("@OutDrive:\\@Subdir\\MSAFINX.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAFINX.DLL")
  141. @EndIf
  142.  
  143. @If( @FileDate("@OutDrive:\\@Subdir\\MSAJT112.DLL")
  144.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAJT112.DLL") )
  145.    //MSAJT112.DLL is used extensively by windows - copying this could cause probs if already in use
  146.   @Copy("@OutDrive:\\@Subdir\\MSAJT112.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSAJT112.DLL")
  147. @EndIf
  148.  
  149. @If( @FileDate("@OutDrive:\\@Subdir\\PORIENT.DLL")
  150.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\PORIENT.DLL") )
  151.    //PORIENT.DLL is used extensively by windows - copying this could cause probs if already in use
  152.   @Copy("@OutDrive:\\@Subdir\\PORIENT.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\PORIENT.DLL")
  153. @EndIf
  154.  
  155. @If( @FileDate("@OutDrive:\\@Subdir\\VBDB300.DLL")
  156.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBDB300.DLL") )
  157.     //VBDB300.DLL is used extensively by windows - copying this could cause probs if already in use
  158.    @Copy("@OutDrive:\\@Subdir\\VBDB300.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBDB300.DLL")
  159. @EndIf
  160.  
  161. @If( @FileDate("@OutDrive:\\@Subdir\\VBRUN300.DLL")
  162.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL") )
  163.    //VBRUN300.DLL is used extensively by windows - copying this could cause probs if already in use
  164.   @Copy("@OutDrive:\\@Subdir\\VBRUN300.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL")
  165. @EndIf
  166.  
  167. @If( @FileDate("@OutDrive:\\@Subdir\\ver.dll")
  168.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\VER.DLL") )
  169.    //VER.DLL is used extensively by windows - copying this could cause probs if already in use
  170.   @Copy("@OutDrive:\\@Subdir\\VER.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\VER.DLL")
  171. @EndIf
  172.  
  173. @If( @FileDate("@OutDrive:\\@Subdir\\CMDIALOG.VBX")
  174.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX") )
  175.      //CMDIALOG.VBX is used extensively by windows - copying this could cause probs if already in use
  176.    @Copy("@OutDrive:\\@Subdir\\CMDIALOG.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX")
  177. @EndIf
  178. /*
  179. @If( @FileDate("@OutDrive:\\@Subdir\\MSGHOOK.VXB")
  180.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSGHOOK.VXB") )
  181.    //MSGHOOK.VXB is used extensively by windows - copying this could cause probs if already in use
  182.  @Copy("@OutDrive:\\@Subdir\\MSGHOOK.VXB", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\MSGHOOK.VXB")
  183. @EndIf
  184.  
  185. @If( @FileDate("@OutDrive:\\@Subdir\\TOOLBUTN.VBX")
  186.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTN.VBX") )
  187.      //TOOLBUTN.VBX is used extensively by windows - copying this could cause probs if already in use
  188.    @Copy("@OutDrive:\\@Subdir\\TOOLBUTN.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTN.VBX")
  189. @EndIf
  190.  
  191. @If( @FileDate("@OutDrive:\\@Subdir\\TOOLBUTT.VXB")
  192.     > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTT.VXB") )
  193.    //TOOLBUTT.VXB is used extensively by windows - copying this could cause probs if already in use
  194.  @Copy("@OutDrive:\\@Subdir\\TOOLBUTT.VXB", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\TOOLBUTT.VXB")
  195. @EndIf
  196. */
  197. @EndDisk
  198.  
  199. @Finish
  200.     @Copy("pcseman.wri", "@OutDrive:\\@Subdir\\*.*")
  201. @If("@PkgType" == "JEWEL")
  202.     @Copy("spacegrd.*", "@OutDrive:\\@Subdir\\*.*")
  203.     @Copy("sgsnd*.*", "@OutDrive:\\@Subdir\\*.*")
  204.     
  205.     @ProgramManager("[CreateGroup(COSMI @Name)]
  206.          [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
  207.          [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
  208.          [AddItem(@Item5, 0)][AddItem(@Item6, 0)]")
  209. /*===================================================================
  210. Change to the game dir and run (Spawn) the self extracting game file    
  211. ====================================================================*/
  212. @Else
  213.     @Copy("spacegrd.*", "@OutDrive:\\@Subdir\\*.*")
  214.     @Copy("sgsnd*.*", "@OutDrive:\\@Subdir\\*.*")
  215.     
  216.     @ProgramManager("[CreateGroup(COSMI @Name)]
  217.          [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
  218.          [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
  219.          [AddItem(@Item5, 0)][AddItem(@Item6, 0)]")
  220. @EndIf
  221.     @ChDrive @OutDrive
  222.     @ChDir "@SubDir"
  223.     
  224.     @Delete("@OutDrive:\\@Subdir\\calladdr.dll")
  225.     @Delete("@OutDrive:\\@Subdir\\commdlg.dll")
  226.     @Delete("@OutDrive:\\@Subdir\\ctl3dv2.dll")
  227.     @Delete("@OutDrive:\\@Subdir\\ddeml.dll")    
  228.     @Delete("@OutDrive:\\@Subdir\\msaes110.dll")
  229.     @Delete("@OutDrive:\\@Subdir\\msafinx.dll")
  230.     @Delete("@OutDrive:\\@Subdir\\msajt112.dll")
  231.     @Delete("@OutDrive:\\@Subdir\\porient.dll")    
  232.     @Delete("@OutDrive:\\@Subdir\\vbdb300.dll")
  233.     @Delete("@OutDrive:\\@Subdir\\vbrun300.dll")
  234.     @Delete("@OutDrive:\\@Subdir\\ver.dll")
  235.     @Delete("@OutDrive:\\@Subdir\\cmdialog.vbx")    
  236.     //@Delete("@OutDrive:\\@Subdir\\msghook.vbx")
  237.     //@Delete("@OutDrive:\\@Subdir\\toolbutn.vbx")
  238.     //@Delete("@OutDrive:\\@Subdir\\toolbutt.vbx")
  239.         
  240.     //delete files from cosmitmp.dir and remove that dir
  241.     @Delete("@OutDrive:\\cosmitmp.dir\\*.*")
  242.     @RmDir("@OutDrive:\\cosmitmp.dir")
  243.  
  244. @Cls
  245.     Installation of @Name is now finished.
  246.     A New application group has been created titled COSMI.
  247.  
  248.     
  249.  
  250.     @Pause
  251. @WinExec("NOTEPAD.EXE @OutDrive:\\@Subdir\\readme.txt", 1, (-1))
  252. @EndFinish
  253.  
  254.     
  255. /* end-of-file */
  256.